#include <stdio.h>

union {
    short value;
    char u[sizeof(short)];
} test;

int main()
{
    test.value = 0x0102;
    if (test.u[0] == 1 && test.u[1] == 2) {
        puts("大端");
    } else {
        puts("小端");
    }
    return 0;
}